﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class ClassifierModel: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        private int _ClassifierID;
        private string _Title;
        private string _Title1;
        private DateTime _Dateentered;
        private string _Enteredby;
        private string _Reference_Number;

        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        { 
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        public int ClassifierID
        {
            get
            {
                return _ClassifierID;
            }
            set
            {
                _ClassifierID = value;

                OnPropertyChanged("ClassifierID");
            }
        }

        public string Title
        {
            get
            {
                return _Title;
            }
            set
            {
                _Title = value;

                OnPropertyChanged("Title");
            }
        }

        public string Title1
        {
            get
            {
                return _Title1;
            }
            set
            {
                _Title1 = value;

                OnPropertyChanged("Title1");
            }
        }

        public string Reference_Number
        {
            get
            {
                return _Reference_Number;
            }
            set
            {
                _Reference_Number = value;

                OnPropertyChanged("Reference_Number");
            }
        }
     
        public DateTime Dateentered
        {
            get
            {
                return _Dateentered;
            }
            set
            {
                _Dateentered = value;

                OnPropertyChanged("Dateentered");
            }
        }
        
        public string Enteredby
        {
            get
            {
                return _Enteredby;
            }
            set
            {
                _Enteredby = value;

                OnPropertyChanged("Enteredby");
            }
        }
    }
}